package com.piece.core.authentication.exception;

import com.piece.core.framework.constant.ExceptionAuthConstants;
import com.piece.core.framework.util.basic.I18nUtil;
import org.springframework.security.authentication.BadCredentialsException;

/**
 * 用户锁定异常类
 */
public class UserBlockedException extends BadCredentialsException {

    public UserBlockedException(String reason) {
        super(I18nUtil.message(ExceptionAuthConstants.USER_BLOCKED, new Object[]{ reason }));
    }
}
